; Music of Motor Massacre (1988) (Gremlin Graphics) (Ben Daglish)
; Ripped by Megachur the 16/01/2007

	write "MOTORMAS.BIN"

music_date_rip	equ &1017
music_adr	equ &c000
first_theme	equ 0
last_theme	equ 4

	read "music_header_v1_0.asm"

;c000
.lc000
	jp lc090	; init
	jp lc118	; play
.lc006
.music_end
	db #00
	jp lc011	; init sound effects
;
.stop_music
;
	xor a
	ld (lc006),a
	jp lc49a
.lc011
	di
	ld l,a
	ld e,a
	ld h,#00
	ld d,h
	add hl,hl
	add hl,de
	add hl,hl
	add hl,hl
	add hl,de
	ld iy,lcf79
	ex de,hl
	add iy,de
	ld l,(iy+#0a)
	ld h,(iy+#0b)
	ld c,(iy+#0c)
	ld ix,lc3dc
	call lc413
	set 7,(ix+#11)
	ei
	ret
.lc040 equ $ + 7
.lc03a equ $ + 1
.lc039
	db #00,#00,#00,#00,#00,#00,#00,#00
.lc048 equ $ + 7
.lc046 equ $ + 5
.lc045 equ $ + 4
.lc044 equ $ + 3
.lc043 equ $ + 2
.lc042 equ $ + 1
	db #00,#00,#00,#00,#00,#00,#00,#00
.lc04f equ $ + 6
.lc04e equ $ + 5
	db #00,#00,#00,#00,#00,#08,#00,#00
.lc058 equ $ + 7
.lc057 equ $ + 6
.lc055 equ $ + 4
	db #00,#00,#00,#00,#00,#00,#00,#00
.lc05d equ $ + 4
.lc05b equ $ + 2
.lc05a equ $ + 1
.lc059
	db #00,#00,#00,#00,#00,#00,#00,#00
.lc064 equ $ + 3
.lc063 equ $ + 2
	db #00,#00,#10,#00,#00,#00,#00,#00
.lc070 equ $ + 7
.lc06f equ $ + 6
.lc06e equ $ + 5
.lc06d equ $ + 4
.lc06c equ $ + 3
.lc06a equ $ + 1
	db #00,#00,#00,#00,#00,#00,#00,#00
.lc078 equ $ + 7
.lc072 equ $ + 1
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00
;
.init_music
.lc090
;
	push af
	call lc49a
	pop af
	ld l,a
	add a
	add l
	add a
	ld hl,lcde0
	add l
	ld l,a
	jr nc,lc0a1
	inc h
.lc0a1
	ld e,(hl)
	inc hl
	ld d,(hl)
	inc hl
	ld (lc03a),de
	ld e,(hl)
	inc hl
	ld d,(hl)
	inc hl
	ld (lc04f),de
	ld e,(hl)
	inc hl
	ld d,(hl)
	inc hl
	ld (lc064),de
	xor a
	ld (lc043),a
	ld (lc058),a
	ld (lc06d),a
	ld (lc048),a
	ld (lc05d),a
	ld (lc072),a
	cpl
	ld (lc044),a
	ld (lc059),a
	ld (lc06e),a
	ld a,#01
	ld (lc042),a
	ld (lc057),a
	ld (lc06c),a
	ld (lc045),a
	ld (lc05a),a
	ld (lc06f),a
	ld hl,lc078
	ld bc,#030a
.lc0f0
	xor a
.lc0f1
	ld (hl),a
	inc hl
	add c
	ld (hl),a
	inc hl
	add c
	cp #50
	jr nz,lc0f1
	djnz lc0f0
	ld hl,lcecd
	ld (lc040),hl
	ld (lc055),hl
	ld (lc06a),hl
	ld a,#ff
	ld (lc046),a
	ld (lc05b),a
	ld (lc070),a
	ld (lc006),a
	ret
;
.play_music
.lc118
;
	call lc4db
	ld a,(lc006)
	and a
	ret z
	ld a,(lc046)
	ld hl,lc05b
	or (hl)
	ld hl,lc070
	or (hl)
	ld (lc006),a
	jr nz,lc142
	xor a
	ld (lc006),a
	ld a,(lc3db)
	and #3f
	cp #3f
	ret z
	ld a,#01
	ld (lc006),a
	ret
.lc142
	ld iy,lc039
	ld ix,lc3dc
	call lc160
	ld iy,lc04e
	ld ix,lc3ee
	call lc160
	ld iy,lc063
	ld ix,lc400
.lc160
	call lc2a1
	ld a,(iy+#0b)
	and a
	jr z,lc1e5
.lc169
	dec (iy+#09)
	jr z,lc180
	ld a,(iy+#03)
	ld (iy+#05),a
	ld a,(iy+#04)
	ld (iy+#06),a
	ld (iy+#0b),#00
	jr lc1e5
.lc180
	ld (iy+#09),#01
	ld l,(iy+#01)
	ld h,(iy+#02)
.lc18a
	ld a,(hl)
	cp #80
	jr c,lc1c5
	cp #fe
	jr nz,lc19c
	inc hl
	ld a,(hl)
	ld (iy+#0a),a
	inc hl
	jp lc18a
.lc19c
	cp #ff
	jr nz,lc1a5
	xor a
	ld (iy+#0d),a
	ret
.lc1a5
	cp #c0
	jr nc,lc1b2
	and #1f
	ld (iy+#09),a
	inc hl
	jp lc18a
.lc1b2
	and #07
	add (iy+#00)
	ld de,lc078
	add e
	ld e,a
	jr nc,lc1bf
	inc d
.lc1bf
	inc hl
	ldi
	jp lc18a
.lc1c5
	ld (iy+#0b),#00
	inc hl
	ld (iy+#01),l
	ld (iy+#02),h
	ld c,a
	ld b,#00
	ld hl,lcd92
	add hl,bc
	ld e,(hl)
	ld hl,lcdb9
	add hl,bc
	ld d,(hl)
	ld (iy+#03),e
	ld (iy+#04),d
	jr lc1eb
.lc1e5
	ld e,(iy+#05)
	ld d,(iy+#06)
.lc1eb
	dec (iy+#0c)
	jr z,lc1fd
	ld a,(de)
	cp #80
	call nc,lc267
	ld (iy+#05),e
	ld (iy+#06),d
	ret
.lc1fd
	ld a,(de)
	cp #80
	jr c,lc20e
	call lc267
	ld a,(iy+#0b)
	and a
	jr z,lc1fd
	jp lc169
.lc20e
	cp #7f
	jr z,lc25a
	cp #7e
	jr nz,lc21f
	inc de
	ld a,(de)
	ld l,a
	inc de
	ld a,(de)
	ld h,a
	jp lc233
.lc21f
	add (iy+#0a)
	add #0c
	ld (iy+#0e),a
	ld hl,lc331
	add a
	ld c,a
	ld b,#00
	add hl,bc
	ld a,(hl)
	inc hl
	ld h,(hl)
	ld l,a
.lc233
	ld a,(iy+#0f)
	or #c0
	ld (iy+#14),a
	inc de
	ld a,(de)
	inc de
	ld (iy+#0c),a
	ld c,a
	ld (iy+#05),e
	ld (iy+#06),d
	ld e,(iy+#07)
	ld a,(iy+#08)
	ld hy,a
	ld ly,e
	bit 7,(ix+#11)
	ret nz
	jp lc413
.lc25a
	inc de
	ld a,(de)
	inc de
	ld (iy+#0c),a
	ld (iy+#05),e
	ld (iy+#06),d
	ret
.lc267
	ld a,(de)
	cp #88
	jr nc,lc285
	and #07
	add (iy+#00)
	ld c,a
	ld b,#00
	ld hl,lc078
	add hl,bc
	ld c,(hl)
	ld hl,lcecd
	add hl,bc
	ld (iy+#07),l
	ld (iy+#08),h
	inc de
	ret
.lc285
	cp #ff
	jr nz,lc28e
	ld (iy+#0b),#ff
	ret
.lc28e
	cp #c0
	jr nc,lc299
	and #0f
	ld (iy+#0f),a
	inc de
	ret
.lc299
	inc de
	cp #c2
	ret z
	inc de
	inc de
	inc de
	ret
.lc2a1
	bit 7,(ix+#11)
	ret nz
	ld a,(iy+#14)
	bit 7,a
	ret z
	and #3f
	jr nz,lc2b5
	res 7,(iy+#14)
	ret
.lc2b5
	ld d,#07
	bit 6,(iy+#14)
	jr nz,lc2e9
	dec (iy+#12)
	ret nz
	dec (iy+#13)
	jp z,lc2e9
	ld l,(iy+#10)
	ld h,(iy+#11)
	inc l
	ld (iy+#10),l
	jp nz,lc2d8
	inc h
	ld (iy+#11),h
.lc2d8
	ld a,(hl)
	and d
	ld (iy+#12),a
	ld a,(hl)
	rrca
	rrca
	rrca
	and #1f
	add (iy+#0e)
	jp lc31e
.lc2e9
	ld hl,lc829
	ld a,(iy+#14)
	add a
	add a
	add a
	ld e,a
	add hl,de
	bit 7,(hl)
	jr nz,lc303
	bit 6,(iy+#14)
	jr nz,lc303
	ld (iy+#13),#01
	ret
.lc303
	res 6,(iy+#14)
	ld a,(hl)
	rrca
	rrca
	rrca
	and d
	ld (iy+#12),a
	ld a,(hl)
	and d
	inc a
	ld (iy+#13),a
	ld (iy+#10),l
	ld (iy+#11),h
	ld a,(iy+#0e)
.lc31e
	add a
	ld hl,lc331
	add l
	ld l,a
	jr nc,lc327
	inc h
.lc327
	ld a,(hl)
	ld (ix+#03),a
	inc hl
	ld a,(hl)
	ld (ix+#04),a
	ret
.lc331
	dw #0eee,#0e18,#0d4d,#0c8e
	dw #0bda,#0b2f,#0a8f,#09f7
	dw #0968,#08e1,#0861,#07e9
	dw #0777,#070c,#06a7,#0647
	dw #05ed,#0598,#0547,#04fc
	dw #04d4,#0470,#0431,#03f4
	dw #03dc,#0386,#0353,#0324
	dw #02f6,#02cc,#02a4,#027e
	dw #025a,#0238,#0218,#01fa
	dw #01de,#01c3,#01aa,#0192
	dw #017b,#0166,#0152,#013f
	dw #012d,#011c,#010c,#00fd
	dw #00ef,#00e1,#00d5,#00c9
	dw #00be,#00b3,#00a9,#009f
	dw #0096,#008e,#0086,#007f
	dw #0077,#0071,#006a,#0064
	dw #005f,#0059,#0054,#0050
	dw #004b,#0047,#0043,#003f
	dw #003c,#0038,#0035,#0032
	dw #002f,#002d,#002a,#0028
	dw #0026,#0024,#0022,#0020
	dw #0018
.lc3e1 equ $ + 6
.lc3e0 equ $ + 5
.lc3df equ $ + 4
.lc3dc equ $ + 1
.lc3db
	db #3f,#fe,#f7,#09,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
.lc3f2 equ $ + 7
.lc3f1 equ $ + 6
.lc3ee equ $ + 3
.lc3ed equ $ + 2
	db #00,#00,#00,#fd,#ef,#12,#00,#00
.lc3f3
	db #00,#00,#00,#00,#00,#00,#00,#00
.lc400 equ $ + 5
.lc3ff equ $ + 4
	db #00,#00,#00,#00,#00,#fb,#df,#24
.lc405 equ $ + 2
.lc404 equ $ + 1
.lc403
	db #00,#00,#00,#00,#00,#00,#00,#00
.lc412 equ $ + 7
.lc411 equ $ + 6
	db #00,#00,#00,#00,#00,#00,#00,#00
.lc413
	di
	ld a,ly
	ld (ix+#0f),a
	ld a,hy
	ld (ix+#10),a
	ld (ix+#03),l
	ld (ix+#04),h
	ld (ix+#06),c
	ld a,(iy+#05)
	ld (ix+#07),a
	ld a,(iy+#06)
	and #7f
	srl a
	jr nz,lc438
	ld a,#01
.lc438
	ld (ix+#08),a
	ld a,(iy+#07)
	ld (ix+#0b),a
	ld a,(iy+#08)
	ld (ix+#0c),a
	xor a
	ld (ix+#09),a
	ld (ix+#0a),a
	ld a,(lc3db)
	or (ix+#02)
	ld c,(iy+#09)
	ld (ix+#11),c
	bit 0,c
	jr z,lc461
	and (ix+#00)
.lc461
	bit 1,c
	jr z,lc468
	and (ix+#01)
.lc468
	ld (lc3db),a
	bit 2,c
	jr nz,lc47a
	ld hl,lc5c9
	ld (ix+#0d),l
	ld (ix+#0e),h
	ei
	ret
.lc47a
	call lc681
	ld a,(iy+#00)
	ld c,#0d
	call lc698
	ld a,(iy+#04)
	ld c,#0b
	call lc698
	inc c
	xor a
	call lc698
	ld (ix+#05),#ff
	ei
	jp lc68d
.lc49a
	call lc681
	ld c,#07
	ld a,(lc3db)
	or #3f
	ld (lc3db),a
	call lc698
	xor a
	inc c
	call lc698
	inc c
	call lc698
	inc c
	call lc698
	ld a,#01
	inc c
	call lc698
	inc c
	xor a
	call lc698
	inc c
	call lc698
	ld (lc3ed),a
	ld (lc3ff),a
	ld (lc411),a
	ld (lc3e1),a
	ld (lc3f3),a
	ld (lc405),a
	jp lc68d
.lc4db
	ld a,(lc3db)
	and #3f
	cp #3f
	ret z
	ld ix,lc3dc
	call lc597
	ld ix,lc3ee
	call lc597
	ld ix,lc400
	call lc597
	call lc681
	ld ix,lc3dc
	ld c,#07
	ld a,(lc3db)
	call lc698
	ld c,#00
	ld a,(lc3df)
	add (ix+#09)
	bit 1,(ix+#11)
	jp z,lc519
	ld (lc412),a
.lc519
	call lc698
	inc c
	ld a,(lc3e0)
	adc (ix+#0a)
	call lc698
	inc c
	ld a,(lc3f1)
	add (ix+#1b)
	bit 1,(ix+#23)
	jp z,lc537
	ld (lc412),a
.lc537
	call lc698
	inc c
	ld a,(lc3f2)
	adc (ix+#1c)
	call lc698
	inc c
	ld a,(lc403)
	add (ix+#2d)
	bit 1,(ix+#35)
	jp z,lc555
	ld (lc412),a
.lc555
	call lc698
	inc c
	ld a,(lc404)
	adc (ix+#2e)
	call lc698
	inc c
	ld a,(lc412)
	rrca
	rrca
	rrca
	call lc698
	ld c,#08
	ld a,(lc3e1)
	srl a
	srl a
	srl a
	call lc698
	inc c
	ld a,(lc3f3)
	srl a
	srl a
	srl a
	call lc698
	inc c
	ld a,(lc405)
	srl a
	srl a
	srl a
	call lc698
	jp lc68d
.lc597
	ld a,(lc3db)
	and (ix+#02)
	cp (ix+#02)
	ret z
	ld a,(ix+#0f)
	ld ly,a
	ld a,(ix+#10)
	ld hy,a
	ld a,(ix+#06)
	and a
	jr z,lc5b8
	cp #ff
	jr z,lc5b8
	dec (ix+#06)
.lc5b8
	call lc63f
	bit 2,(iy+#09)
	jp nz,lc638
	ld l,(ix+#0d)
	ld h,(ix+#0e)
	jp (hl)
.lc5c9
	ld a,(ix+#05)
	add (iy+#00)
	cp (iy+#04)
	jr nc,lc5d8
	ld (ix+#05),a
	ret
.lc5d8
	ld a,(iy+#04)
	ld (ix+#05),a
	ld hl,lc5e8
	ld (ix+#0d),l
	ld (ix+#0e),h
	ret
.lc5e8
	ld a,(ix+#05)
	add (iy+#01)
	jp m,lc5fa
	cp (iy+#02)
	jr c,lc5fa
	ld (ix+#05),a
	ret
.lc5fa
	ld a,(iy+#02)
	ld (ix+#05),a
	ld hl,lc60a
	ld (ix+#0d),l
	ld (ix+#0e),h
	ret
.lc60a
	ld a,(ix+#06)
	and a
	ret nz
	ld hl,lc619
	ld (ix+#0d),l
	ld (ix+#0e),h
	ret
.lc619
	ld a,(ix+#05)
	add (iy+#03)
	jp m,lc626
	ld (ix+#05),a
	ret
.lc626
	ld (ix+#05),#00
	ld a,(lc3db)
	or (ix+#02)
	ld (lc3db),a
	res 7,(ix+#11)
	ret
.lc638
	ld a,(ix+#06)
	and a
	ret nz
	jr lc626
.lc63f
	ld a,(ix+#07)
	and a
	jr z,lc64c
	cp #ff
	ret z
	dec (ix+#07)
	ret nz
.lc64c
	ld l,(ix+#09)
	ld h,(ix+#0a)
	ld c,(ix+#0b)
	ld b,(ix+#0c)
	add hl,bc
	ld (ix+#09),l
	ld (ix+#0a),h
	dec (ix+#08)
	ret nz
	ld a,(iy+#06)
	and a
	ret z
	jp p,lc670
	ld (ix+#07),#ff
	ret
.lc670
	ld (ix+#08),a
	ld a,c
	cpl
	ld c,a
	ld a,b
	cpl
	ld b,a
	inc bc
	ld (ix+#0b),c
	ld (ix+#0c),b
	ret
.lc681
	ld bc,#f782
	out (c),c
	ld de,#c000
	ld hl,#f680
	ret
.lc68d
	ld bc,#f40e
	out (c),c
	ld b,h
	out (c),d
	out (c),e
	ret
.lc698
	ld b,#f4
	out (c),c
	ld b,h
	out (c),d
	out (c),e
	ld b,#f4
	out (c),a
	ld b,h
	out (c),l
	out (c),e
	ret
	ld a,#00
	call lc090
.lc6b0
	di
	ld bc,#f500
.lc6b4
	in a,(c)
	and #01
	jr z,lc6b4
	ld b,#00
.lc6bc
	djnz lc6bc
.lc6be
	djnz lc6be
.lc6c0
	djnz lc6c0
.lc6c2
	djnz lc6c2
	ld bc,#7f10
	out (c),c
	ld a,#40
	out (c),a
	call lc118
	ld bc,#7f10
	out (c),c
	ld a,#54
	out (c),a
	jr lc6b0
.lc6db
	db #80,#06,#06,#81,#06,#06,#06,#06
	db #80,#06,#06,#81,#06,#06,#06,#06
	db #80,#06,#06,#81,#06,#06,#06,#06
	db #80,#06,#06,#81,#06,#06,#06,#06
	db #80,#06,#06,#81,#06,#06,#80,#10
.lc707 equ $ + 4
	db #06,#12,#06,#ff,#80,#1e,#06,#1c
	db #06,#81,#1e,#06,#1c,#06,#1e,#06
	db #1c,#06,#1e,#06,#1c,#06,#1e,#06
	db #1c,#06,#1e,#06,#1c,#06,#1e,#06
	db #1c,#06,#1e,#06,#1c,#06,#80,#19
	db #06,#17,#06,#81,#19,#06,#17,#06
	db #19,#06,#17,#06,#19,#06,#17,#06
	db #19,#06,#17,#06,#19,#06,#17,#06
	db #19,#06,#17,#06,#19,#06,#17,#06
	db #80,#15,#06,#14,#06,#81,#15,#06
	db #14,#06,#15,#06,#14,#06,#15,#06
	db #14,#06,#15,#06,#14,#06,#15,#06
	db #14,#06,#15,#06,#80,#12,#06,#10
	db #06,#12,#06,#81,#10,#06,#12,#06
	db #10,#06,#12,#06,#10,#06,#12,#06
	db #10,#06,#12,#06,#10,#06,#12,#06
	db #10,#06,#12,#06,#10,#06,#12,#06
.lc790 equ $ + 5
	db #10,#06,#12,#06,#ff,#7f,#60,#ff
.lc793
	db #80,#06,#06,#81,#06,#06,#06,#06
	db #80,#06,#06,#81,#06,#06,#06,#06
	db #80,#06,#06,#81,#06,#06,#06,#06
	db #82,#1e,#06,#1e,#06,#1e,#06,#1b
.lc7b9 equ $ + 6
	db #0c,#17,#06,#17,#06,#ff,#82,#06
	db #12,#06,#06,#83,#12,#0c,#82,#06
	db #18,#12,#0c,#83,#12,#06,#82,#06
.lc7d2 equ $ + 7
	db #06,#84,#3d,#06,#38,#06,#ff,#80
	db #1e,#06,#1c,#06,#81,#1e,#06,#1c
	db #06,#1e,#06,#1c,#06,#1e,#06,#1c
	db #06,#1e,#06,#1c,#06,#1e,#06,#1c
	db #06,#1e,#06,#1c,#06,#1e,#06,#1c
	db #06,#80,#1a,#06,#17,#06,#81,#1a
	db #06,#17,#06,#1a,#06,#17,#06,#1a
	db #06,#17,#06,#1a,#06,#17,#06,#1a
	db #06,#17,#06,#1a,#06,#17,#06,#1a
	db #06,#17,#06,#80,#15,#06,#12,#06
	db #81,#15,#06,#12,#06,#15,#06,#12
.lc829 equ $ + 6
	db #06,#15,#06,#12,#06,#15,#06,#12
	db #06,#15,#06,#12,#06,#15,#06,#80
	db #12,#06,#15,#06,#17,#06,#81,#15
	db #06,#17,#06,#15,#06,#17,#06,#15
	db #06,#17,#06,#15,#06,#17,#06,#15
	db #06,#17,#06,#15,#06,#17,#06,#80
	db #12,#06,#15,#06,#17,#06,#1a,#06
.lc85c equ $ + 1
	db #ff,#82,#06,#12,#06,#06,#83,#12
	db #0c,#82,#06,#06,#83,#12,#06,#82
	db #1e,#06,#1e,#0c,#1b,#0c,#1b,#06
.lc878 equ $ + 5
	db #17,#06,#17,#06,#ff,#91,#85,#31
	db #06,#81,#31,#06,#31,#06,#85,#31
	db #06,#81,#31,#06,#31,#06,#85,#31
	db #06,#81,#31,#06,#31,#06,#85,#31
	db #06,#81,#31,#06,#31,#06,#85,#31
	db #06,#81,#31,#06,#85,#31,#06,#81
.lc8a6 equ $ + 3
	db #31,#06,#ff,#7f,#0c,#93,#80,#2a
	db #06,#81,#2a,#06,#2a,#06,#80,#2a
	db #06,#81,#2a,#06,#2a,#06,#80,#2c
	db #06,#81,#2c,#06,#2c,#06,#80,#2c
	db #06,#81,#2c,#06,#2c,#06,#92,#80
	db #2d,#06,#81,#2d,#06,#2d,#06,#2d
	db #06,#93,#80,#2f,#06,#81,#2f,#06
	db #2f,#06,#80,#2f,#06,#81,#2f,#06
	db #2f,#06,#80,#31,#06,#81,#31,#06
	db #31,#06,#80,#31,#06,#81,#31,#06
	db #31,#06,#80,#92,#32,#06,#94,#31
	db #06,#81,#92,#32,#06,#94,#31,#06
	db #92,#32,#06,#94,#31,#06,#92,#32
	db #06,#94,#31,#06,#92,#32,#06,#94
	db #31,#06,#92,#32,#06,#94,#31,#06
	db #92,#32,#06,#94,#31,#06,#92,#32
	db #06,#94,#31,#06,#92,#32,#06,#94
	db #31,#06,#92,#32,#06,#94,#31,#06
	db #92,#32,#06,#94,#31,#06,#92,#32
	db #06,#94,#31,#06,#92,#32,#06,#94
	db #31,#06,#92,#32,#06,#94,#31,#06
	db #92,#32,#06,#94,#31,#06,#92,#32
	db #06,#94,#31,#06,#92,#32,#06,#94
.lc95e equ $ + 3
	db #31,#06,#ff,#80,#09,#06,#0b,#06
	db #0d,#06,#10,#0c,#0d,#06,#10,#06
.lc96e equ $ + 3
	db #12,#06,#ff,#90,#82,#1e,#06,#1e
	db #06,#1e,#06,#1e,#06,#1b,#06,#1b
.lc981 equ $ + 6
	db #06,#17,#06,#17,#06,#ff,#93,#80
	db #31,#06,#81,#31,#06,#31,#06,#80
	db #31,#06,#81,#31,#06,#31,#06,#80
.lc999 equ $ + 6
	db #31,#06,#92,#2f,#06,#ff,#95,#85
	db #33,#06,#34,#06,#36,#06,#39,#0c
	db #38,#0c,#36,#12,#34,#06,#33,#06
.lc9b2 equ $ + 7
	db #34,#06,#33,#06,#2f,#0c,#ff,#95
	db #85,#33,#06,#34,#06,#36,#06,#3b
	db #0c,#39,#0c,#36,#12,#34,#06,#33
	db #06,#34,#06,#33,#06,#2f,#06,#2d
.lc9cd equ $ + 2
	db #06,#ff,#80,#06,#06,#81,#06,#06
	db #06,#06,#80,#06,#06,#81,#06,#06
	db #06,#06,#80,#10,#06,#12,#06,#ff
.lc9e3
	db #80,#2c,#12,#2c,#12,#27,#06,#29
.lc9ef equ $ + 4
	db #06,#7f,#30,#ff,#80,#30,#12,#30
.lc9f9 equ $ + 6
	db #12,#2b,#06,#2c,#06,#ff,#95,#81
	db #3c,#06,#35,#06,#30,#06,#29,#06
.lca04 equ $ + 1
	db #ff,#80,#06,#06,#81,#06,#06,#06
	db #06,#80,#06,#06,#83,#12,#06,#81
	db #06,#06,#80,#06,#06,#81,#06,#06
	db #06,#06,#80,#06,#06,#81,#06,#06
	db #06,#06,#83,#12,#06,#81,#06,#06
.lca31 equ $ + 6
	db #87,#10,#06,#12,#06,#ff,#95,#80
	db #20,#06,#81,#20,#06,#20,#06,#20
	db #06,#80,#22,#06,#24,#06,#81,#24
	db #06,#80,#27,#06,#81,#27,#06,#27
	db #06,#80,#26,#06,#24,#06,#81,#24
	db #06,#24,#06,#24,#06,#24,#06,#24
	db #06,#24,#06,#80,#22,#06,#20,#06
	db #22,#06,#81,#22,#06,#80,#22,#06
	db #20,#06,#22,#06,#81,#22,#06,#80
	db #22,#06,#20,#06,#23,#06,#22,#06
	db #20,#06,#1d,#06,#20,#06,#81,#20
	db #06,#20,#06,#20,#06,#80,#22,#06
	db #24,#06,#81,#24,#06,#80,#27,#06
	db #81,#27,#06,#27,#06,#80,#26,#06
	db #24,#06,#81,#24,#06,#24,#06,#24
	db #06,#24,#06,#24,#06,#24,#06,#80
	db #22,#06,#20,#06,#22,#06,#81,#22
	db #06,#80,#22,#06,#20,#06,#22,#06
	db #81,#22,#06,#80,#22,#06,#20,#06
	db #1f,#06,#20,#06,#1f,#06,#1b,#06
.lcacc equ $ + 1
	db #ff,#80,#08,#06,#08,#06,#08,#06
	db #08,#06,#83,#12,#06,#80,#08,#06
	db #80,#08,#06,#08,#06,#08,#06,#08
	db #06,#08,#06,#08,#06,#83,#12,#06
	db #80,#08,#06,#87,#12,#06,#14,#06
	db #80,#0d,#06,#0d,#06,#0d,#06,#0d
	db #06,#83,#12,#06,#80,#0d,#06,#80
	db #0d,#06,#0d,#06,#0d,#06,#0d,#06
	db #0d,#06,#0d,#06,#83,#12,#06,#80
	db #0d,#06,#87,#17,#06,#19,#06,#80
	db #06,#06,#06,#06,#06,#06,#06,#06
	db #83,#12,#06,#80,#06,#06,#80,#06
	db #06,#06,#06,#06,#06,#06,#06,#06
	db #06,#06,#06,#83,#12,#06,#80,#06
	db #06,#87,#10,#06,#12,#06,#80,#03
	db #06,#03,#06,#03,#06,#80,#03,#06
	db #83,#12,#06,#80,#03,#06,#80,#03
	db #06,#03,#06,#03,#06,#03,#06,#03
	db #06,#03,#06,#83,#12,#06,#80,#03
.lcb6a equ $ + 7
	db #06,#87,#0d,#06,#0f,#06,#ff,#95
	db #81,#38,#06,#33,#06,#38,#06,#33
.lcb75 equ $ + 2
	db #06,#ff,#7f,#18,#80,#92,#2c,#06
	db #93,#2e,#06,#30,#06,#94,#33,#12
	db #92,#31,#06,#93,#30,#12,#92,#31
	db #06,#93,#30,#12,#92,#31,#06,#93
	db #30,#06,#92,#31,#0c,#31,#06,#93
	db #30,#06,#92,#31,#0c,#31,#06,#93
	db #30,#06,#92,#31,#06,#94,#2e,#06
	db #2c,#0c,#7f,#18,#92,#2a,#06,#93
	db #2c,#06,#2e,#06,#94,#31,#12,#92
	db #2f,#06,#93,#2e,#12,#92,#2f,#06
	db #93,#2e,#12,#93,#2b,#06,#92,#2c
	db #06,#93,#2e,#0c,#2e,#06,#30,#06
	db #92,#31,#0c,#31,#06,#93,#33,#06
.lcbe2 equ $ + 7
	db #35,#0c,#35,#06,#37,#06,#ff,#92
	db #2f,#06,#2f,#0c,#31,#12,#31,#06
.lcbf0 equ $ + 5
	db #94,#31,#06,#ff,#ff,#80,#0b,#06
	db #0d,#06,#0f,#06,#0d,#0c,#0f,#06
.lcc00 equ $ + 5
	db #11,#06,#12,#06,#ff,#80,#06,#18
	db #83,#12,#0c,#80,#06,#06,#06,#06
	db #06,#0c,#06,#0c,#83,#12,#06,#80
.lcc18 equ $ + 5
	db #06,#06,#06,#0c,#ff,#86,#7f,#0c
	db #96,#2a,#06,#2a,#06,#2a,#0c,#2a
	db #0c,#97,#2a,#0c,#2a,#18,#2a,#0c
	db #98,#2c,#12,#2c,#06,#2c,#0c,#97
	db #2a,#18,#2a,#18,#2a,#06,#2a,#06
.lcc3c equ $ + 1
	db #ff,#86,#26,#12,#27,#06,#29,#0c
	db #2e,#90,#33,#0c,#32,#12,#35,#12
.lcc52 equ $ + 7
	db #2e,#90,#29,#06,#27,#06,#ff,#80
	db #02,#18,#83,#12,#0c,#80,#02,#06
	db #02,#06,#04,#0c,#04,#0c,#83,#12
	db #06,#80,#04,#06,#04,#0c,#83,#12
.lcc71 equ $ + 6
	db #06,#12,#06,#12,#24,#ff,#86,#7f
	db #0c,#98,#2a,#06,#2a,#06,#2a,#0c
	db #2a,#0c,#2c,#0c,#2c,#18,#2c,#0c
	db #96,#2a,#06,#2a,#06,#2a,#0c,#ff
.lcc8b
	db #25,#0c,#2a,#0c,#2e,#0c,#2c,#18
.lcc9a equ $ + 7
	db #27,#0c,#24,#0c,#22,#30,#ff,#80
	db #06,#12,#0a,#12,#0b,#12,#0a,#12
	db #08,#12,#0c,#12,#0d,#12,#0b,#12
	db #0a,#12,#0e,#12,#0f,#12,#0d,#12
	db #0b,#12,#08,#12,#0d,#12,#01,#12
.lccbc equ $ + 1
	db #ff,#86,#22,#0c,#1e,#12,#1b,#18
	db #19,#0c,#1b,#18,#1e,#0c,#1d,#18
	db #1b,#0c,#1d,#18,#20,#0c,#1e,#18
	db #1d,#0c,#1e,#18,#1d,#0c,#1e,#18
.lcce0 equ $ + 5
	db #1d,#0c,#1e,#06,#ff,#85,#96,#2a
	db #0c,#2a,#12,#97,#2a,#18,#2a,#12
	db #7f,#0c,#96,#2c,#12,#97,#2c,#18
	db #2c,#12,#7f,#0c,#96,#2e,#12,#99
	db #2e,#12,#2e,#06,#96,#2e,#0c,#96
	db #2f,#18,#2f,#12,#2f,#0c,#97,#2c
.lcd0f equ $ + 4
	db #12,#2e,#06,#ff,#80,#7f,#0c,#12
	db #06,#0d,#06,#06,#0c,#06,#0c,#06
	db #0c,#06,#0c,#04,#0c,#04,#0c,#0b
	db #0c,#0d,#06,#0d,#06,#06,#12,#06
	db #06,#06,#0c,#01,#0c,#06,#0c,#ff
.lcd33
	db #86,#1e,#06,#20,#06,#22,#06,#23
	db #06,#96,#1e,#12,#1e,#06,#1e,#0c
	db #98,#20,#18,#97,#1e,#18,#1e,#06
.lcd51 equ $ + 6
	db #1e,#06,#96,#1e,#30,#ff,#81,#95
	db #24,#06,#23,#06,#22,#06,#21,#06
.lcd60 equ $ + 5
	db #22,#06,#23,#06,#ff,#86,#0e,#24
.lcd6a equ $ + 7
	db #0d,#24,#0c,#24,#0d,#24,#ff,#86
	db #12,#30,#15,#0c,#12,#0c,#10,#30
	db #15,#0c,#12,#0c,#13,#0c,#12,#78
	db #0d,#0c,#12,#30,#15,#0c,#12,#0c
	db #18,#30,#17,#0c,#15,#0c,#17,#06
	db #15,#06,#12,#78,#0d,#0c,#ff
.lcd92
	db lc6db,lc707,lc790,lc793
	db lc7b9,lc7d2,lc85c,lc878
	db lc8a6,lc95e,lc96e,lc981
	db lc999,lc9b2,lc9cd,lc9e3
	db lc9ef,lc9f9,lca04,lca31
	db lcacc,lcb6a,lcb75,lcbe2
	db lcbf0,lcc00,lcc18,lcc3c
	db lcc52,lcc71,lcc8b,lcc9a
	db lccbc,lcce0,lcd0f,lcd33
	db lcd51,lcd60,lcd6a
;	db #db,#07,#90,#93,#b9,#d2,#5c,#78
;	db #a6,#5e,#6e,#81,#99,#b2,#cd,#e3
;	db #ef,#f9,#04,#31,#cc,#6a,#75,#e2
;	db #f0,#00,#18,#3c,#52,#71,#8b,#9a
;	db #bc,#e0,#0f,#33,#51,#60,#6a
.lcdb9
	db lc6db/&100,lc707/&100,lc790/&100,lc793/&100
	db lc7b9/&100,lc7d2/&100,lc85c/&100,lc878/&100
	db lc8a6/&100,lc95e/&100,lc96e/&100,lc981/&100
	db lc999/&100,lc9b2/&100,lc9cd/&100,lc9e3/&100
	db lc9ef/&100,lc9f9/&100,lca04/&100,lca31/&100
	db lcacc/&100,lcb6a/&100,lcb75/&100,lcbe2/&100
	db lcbf0/&100,lcc00/&100,lcc18/&100,lcc3c/&100
	db lcc52/&100,lcc71/&100,lcc8b/&100,lcc9a/&100
	db lccbc/&100,lcce0/&100,lcd0f/&100,lcd33/&100
	db lcd51/&100,lcd60/&100,lcd6a/&100
;	db #c6,#c7,#c7,#c7,#c7,#c7,#c8,#c8
;	db #c8,#c9,#c9,#c9,#c9,#c9,#c9,#c9
;	db #c9,#c9,#ca,#ca,#ca,#cb,#cb,#cb
;	db #cb,#cc,#cc,#cc,#cc,#cc,#cc,#cc
;	db #cc,#cc,#cd,#cd,#cd,#cd,#cd
.lcde0
	dw lcdfe,lce49,lce73
	dw lce97,lce9d,lcea3
	dw lcea7,lceab,lceaf
	dw lceb3,lceb7,lcebb
	dw lcebf,lcec4,lcec9
.lcdfe
	db #8c,#00,#fe,#03,#88,#00,#fe,#05
	db #84,#00,#fe,#00,#94,#00,#fe,#fc
	db #00,#00,#fe,#fe,#00,#00,#fe,#00
	db #84,#00,#09,#fe,#03,#00,#00,#fe
	db #00,#09,#fe,#03,#00,#00,#fe,#f6
	db #0e,#fe,#fb,#0e,#fe,#f8,#0e,#fe
	db #fd,#0e,#fe,#fa,#0e,#fe,#ff,#84
	db #00,#83,#12,#fe,#fd,#12,#fe,#ff
	db #83,#12,#fe,#fd,#12,#fe,#00,#14
.lce49 equ $ + 3
	db #14,#18,#ff,#84,#02,#82,#01,#fe
	db #03,#82,#01,#fe,#00,#05,#82,#01
	db #84,#07,#84,#08,#0b,#0c,#0c,#0b
	db #0c,#0d,#0f,#fe,#02,#0f,#fe,#00
	db #10,#90,#11,#90,#11,#90,#11,#90
.lce73 equ $ + 5
	db #15,#90,#15,#17,#ff,#c0,#50,#c1
	db #5a,#8b,#00,#03,#8b,#04,#06,#8b
	db #04,#06,#90,#04,#0a,#04,#04,#0a
	db #84,#04,#0a,#84,#04,#c0,#00,#c1
	db #0a,#82,#13,#fe,#f4,#16,#16,#0a
.lce9d equ $ + 7
.lce97 equ $ + 1
	db #ff,#fe,#04,#88,#19,#1c,#ff,#fe
.lcea3 equ $ + 5
	db #04,#84,#1a,#1d,#ff,#1b,#1b,#1e
.lceab equ $ + 5
.lcea7 equ $ + 1
	db #ff,#fe,#04,#1f,#ff,#fe,#04,#20
.lceb3 equ $ + 5
.lceaf equ $ + 1
	db #ff,#fe,#04,#21,#ff,#fe,#04,#22
.lcebb equ $ + 5
.lceb7 equ $ + 1
	db #ff,#fe,#04,#23,#ff,#fe,#10,#23
.lcec4 equ $ + 6
.lcebf equ $ + 1
	db #ff,#fe,#06,#90,#24,#ff,#fe,#06
.lcecd equ $ + 7
.lcec9 equ $ + 3
	db #84,#25,#ff,#fe,#06,#26,#ff,#7f
	db #fd,#01,#ff,#7f,#00,#04,#02,#00
	db #01,#7f,#fd,#01,#ff,#5a,#00,#04
	db #02,#00,#01,#7f,#f8,#01,#ff,#7f
	db #00,#00,#3c,#00,#01,#7f,#fc,#01
	db #ff,#64,#00,#00,#3c,#00,#03,#08
	db #ff,#01,#ff,#01,#00,#00,#fb,#ff
	db #05,#28,#fc,#01,#ff,#64,#03,#04
	db #02,#00,#01,#2f,#fc,#50,#a6,#7f
	db #00,#04,#01,#00,#01,#08,#ff,#01
	db #ff,#01,#00,#00,#00,#00,#05,#7f
	db #fd,#01,#ff,#7f,#00,#82,#0a,#00
	db #01,#7f,#fd,#01,#ff,#5a,#00,#82
	db #0a,#00,#01,#8a,#19,#29,#00,#00
	db #00,#00,#00,#89,#21,#00,#00,#00
	db #00,#00,#00,#89,#19,#00,#00,#00
	db #00,#00,#00,#89,#29,#00,#00,#00
	db #00,#00,#00,#89,#61,#00,#00,#00
	db #00,#00,#00,#8a,#21,#39,#00,#00
	db #00,#00,#00,#8a,#29,#49,#00,#00
	db #00,#00,#00,#8a,#19,#41,#00,#00
	db #00,#00,#00,#8a,#29,#41,#00,#00
.lcf79 equ $ + 3
	db #00,#00,#00,#7f,#f9,#01,#ff,#7f
	db #00,#00,#5c,#00,#03,#ce,#00,#0a
	db #7f,#fe,#01,#ff,#7f,#00,#00,#32
	db #00,#03,#6c,#01,#32,#7f,#fb,#01
	db #fd,#7f,#00,#01,#2f,#00,#01,#54
	db #00,#14,#7f,#fc,#01,#ff,#7f,#00
	db #00,#fe,#ff,#03,#00,#03,#0f,#7f
	db #fc,#01,#ff,#7f,#00,#00,#19,#00
	db #03,#d9,#01,#14,#7f,#ff,#01,#ff
	db #7f,#00,#00,#47,#00,#02,#0a,#00
	db #50,#08,#ff,#01,#ff,#7f,#00,#02
	db #04,#00,#05,#5e,#00,#23,#7f,#ff
	db #01,#ff,#7f,#00,#00,#03,#00,#03
	db #40,#00,#6e,#7f,#ff,#01,#ff,#7f
	db #00,#00,#28,#00,#02,#40,#00,#6e
	db #7f,#ff,#01,#ff,#7f,#00,#00,#28
	db #00,#02,#41,#00,#32,#7f,#ff,#01
	db #ff,#7f,#00,#00,#01,#00,#03,#13
	db #01,#6e,#00,#00

.game_name
	db "Motor Massacre",0
.game_year
	db "1988",0
.game_publisher
	db "Gremlin Graphics",0
.music_author
	db "Ben Daglish",0
.music_comment
	db "",0
	
	read "music_end_v1_0.asm"
